/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.po.ExaminationQuestionOptionPO;
import com.xy.biz.ts.domain.query.ExaminationQuestionOptionQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-3-8
 */
public interface ExaminationQuestionOptionDao {

	/**
	 * 保存
	 *
	 * @param examinationQuestionOptionPO
	 */
	int saveExaminationQuestionOption(ExaminationQuestionOptionPO examinationQuestionOptionPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationQuestionOption(Collection<ExaminationQuestionOptionPO> collection);

	/**
	 * 更新
	 *
	 * @param examinationQuestionOptionPO
	 */
	int updateExaminationQuestionOption(ExaminationQuestionOptionPO examinationQuestionOptionPO);

	/**
	 * 删除
	 *
	 * @param examinationQuestionOptionId
	 */
	int deleteExaminationQuestionOption(Long examinationQuestionOptionId);

	/**
	 * 查找一个
	 *
	 * @param examinationQuestionOptionId
	 * @return
	 */
	ExaminationQuestionOptionPO getExaminationQuestionOption(Long examinationQuestionOptionId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ExaminationQuestionOptionPO> listExaminationQuestionOptionById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ExaminationQuestionOptionPO> listExaminationQuestionOption(ExaminationQuestionOptionQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countExaminationQuestionOption(ExaminationQuestionOptionQuery query);

	List<ExaminationQuestionOptionPO> listExaminationQuestionOptionByExaminationQuestionIds(Collection<Long> examinationQuestionIds);

	/**
	 * 按主键删除记录
	 * @param examinationQuestionOptionIds
	 * @return
	 */
    int deleteExaminationQuestionOptionByIds(List<Long> examinationQuestionOptionIds);

	/**
	 * 按题目删除选项
	 * @param examinationQuestionId
	 * @return
	 */
	int deleteExaminationQuestionOptionByExaminationQuestionId(Long examinationQuestionId);
}
